package com.corpgovernment.travelstandard.entity.db;

import com.corpgovernment.common.annotation.OperateLogFieldDesc;
import com.corpgovernment.common.entity.db.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;


/**
 * 差标岗位表
 **/
@EqualsAndHashCode(callSuper = true)
@SuppressWarnings("serial")
@Data
@Alias("travelStandardPost")
@Table(name = "mb_travelstand_post")
public class TravelStandardPost extends BaseEntity {

    /**
     * 岗位编号
     **/
    @OperateLogFieldDesc(value = "职级编号")
    @Column(name = "post_id")
    private Long postid;

    /**
     * 差标id
     **/
    @OperateLogFieldDesc(value = "差标id")
    @Column(name = "ts_id")
    private Long tsid;

    /**
     * 地区id
     **/
    @OperateLogFieldDesc(value = "地区id")
    @Transient
    private Integer areaId;

    /***差标类型**/
    @OperateLogFieldDesc(value = "差标类型")
    @Column(name = "ts_type")
    private String tstype;

    /**
     * 组织id
     **/
    @OperateLogFieldDesc(value = "组织id")
    @Transient
    private String orgid;

    /**
     * 差标名
     **/
    @OperateLogFieldDesc(value = "差标名")
    @Transient
    private String tsname;


}
